import request from '@/utils/request'

// 查询第三方登录列表
export function listThird(query) {
  return request({
    url: '/tool/third/list',
    method: 'get',
    params: query
  })
}

// 查询第三方登录详细
export function getThird(thirdId) {
  return request({
    url: '/tool/third/' + thirdId,
    method: 'get'
  })
}

// 新增第三方登录
export function addThird(data) {
  return request({
    url: '/tool/third',
    method: 'post',
    data: data
  })
}

// 修改第三方登录
export function updateThird(data) {
  return request({
    url: '/tool/third',
    method: 'put',
    data: data
  })
}

// 删除第三方登录
export function delThird(thirdId) {
  return request({
    url: '/tool/third/' + thirdId,
    method: 'delete'
  })
}

// 导出第三方登录
export function exportThird(query) {
  return request({
    url: '/tool/third/export',
    method: 'get',
    params: query
  })
}